---
layout: single
property_name: text-decoration
---

<section id="text-decoration" class="property">
  <header class="property-header">
    <nav class="property-links">
        <a class="property-collection" href="{{site.url}}/typography/">
          In collection: <strong>typography</strong>
        </a>
      <a class="property-links-direct" href="{{site.url}}/property/text-decoration/" data-property-name="text-decoration" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-decoration">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-decoration" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#text-decoration"><span>#</span>text-decoration</a>
    </h2>
    <div class="property-description">
      <p>Defines how the text content of the element is decorated.</p>

    </div>

  </header>





    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-decoration: none;">text-decoration: none;</code>
        </p>
        <div class="example-description">
          <p>Removes any text decoration.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div text-decoration " id="text-decoration-none">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#text-decoration-none{ text-decoration:none;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-decoration: underline;">text-decoration: underline;</code>
        </p>
        <div class="example-description">
          <p>Underlines the text content.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div text-decoration " id="text-decoration-underline">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#text-decoration-underline{ text-decoration:underline;}</style>
    </section>

</section>
